﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DeckDataSet" targetNamespace="http://tempuri.org/DeckDataSet.xsd" xmlns:mstns="http://tempuri.org/DeckDataSet.xsd" xmlns="http://tempuri.org/DeckDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MagicManagerConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MagicManagerConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Faust.Andrew.MTG.Properties.Settings.GlobalReference.Default.MagicManagerConnectionString" Provider="System.Data.SQLite" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DeckTableAdapter" GeneratorDataComponentClassName="DeckTableAdapter" Name="Deck" UserDataComponentName="DeckTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="MagicManagerConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT        Decks.DeckID, Decks.Name AS DeckName, DeckCards.MultiverseID, DeckCards.Quantity, Cards.Rarity, Cards.Color, Cards.CardTypes, 
                         Cards.Name AS CardName
FROM            Decks INNER JOIN
                         DeckCards ON Decks.DeckID = DeckCards.DeckID INNER JOIN
                         Cards ON DeckCards.MultiverseID = Cards.MultiverseID
WHERE        (Decks.DeckID = @FilterID)
ORDER BY CardName</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="FilterID" ColumnName="DeckID" DataSourceName="main.Decks" DataTypeServer="integer(8)" DbType="Int64" Direction="Input" ParameterName="@FilterID" Precision="0" ProviderType="Int64" Scale="0" Size="8" SourceColumn="DeckID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="DeckID" DataSetColumn="DeckID" />
              <Mapping SourceColumn="DeckName" DataSetColumn="DeckName" />
              <Mapping SourceColumn="MultiverseID" DataSetColumn="MultiverseID" />
              <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
              <Mapping SourceColumn="Rarity" DataSetColumn="Rarity" />
              <Mapping SourceColumn="Color" DataSetColumn="Color" />
              <Mapping SourceColumn="CardTypes" DataSetColumn="CardTypes" />
              <Mapping SourceColumn="CardName" DataSetColumn="CardName" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DeckDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DeckDataSet" msprop:Generator_DataSetName="DeckDataSet" msprop:EnableTableAdapterManager="True">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Deck" msprop:Generator_UserTableName="Deck" msprop:Generator_RowDeletedName="DeckRowDeleted" msprop:Generator_RowChangedName="DeckRowChanged" msprop:Generator_RowClassName="DeckRow" msprop:Generator_RowChangingName="DeckRowChanging" msprop:Generator_RowEvArgName="DeckRowChangeEvent" msprop:Generator_RowEvHandlerName="DeckRowChangeEventHandler" msprop:Generator_TableClassName="DeckDataTable" msprop:Generator_TableVarName="tableDeck" msprop:Generator_RowDeletingName="DeckRowDeleting" msprop:Generator_TablePropName="Deck">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DeckID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="DeckID" msprop:Generator_ColumnPropNameInRow="DeckID" msprop:Generator_ColumnVarNameInTable="columnDeckID" msprop:Generator_ColumnPropNameInTable="DeckIDColumn" type="xs:long" />
              <xs:element name="DeckName" msprop:Generator_UserColumnName="DeckName" msprop:Generator_ColumnPropNameInRow="DeckName" msprop:Generator_ColumnVarNameInTable="columnDeckName" msprop:Generator_ColumnPropNameInTable="DeckNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MultiverseID" msprop:Generator_UserColumnName="MultiverseID" msprop:Generator_ColumnPropNameInRow="MultiverseID" msprop:Generator_ColumnVarNameInTable="columnMultiverseID" msprop:Generator_ColumnPropNameInTable="MultiverseIDColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Quantity" msprop:Generator_UserColumnName="Quantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" type="xs:long" />
              <xs:element name="Rarity" msprop:Generator_UserColumnName="Rarity" msprop:Generator_ColumnPropNameInRow="Rarity" msprop:Generator_ColumnVarNameInTable="columnRarity" msprop:Generator_ColumnPropNameInTable="RarityColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="25" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Color" msprop:Generator_UserColumnName="Color" msprop:Generator_ColumnPropNameInRow="Color" msprop:Generator_ColumnVarNameInTable="columnColor" msprop:Generator_ColumnPropNameInTable="ColorColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CardTypes" msprop:Generator_UserColumnName="CardTypes" msprop:Generator_ColumnPropNameInRow="CardTypes" msprop:Generator_ColumnVarNameInTable="columnCardTypes" msprop:Generator_ColumnPropNameInTable="CardTypesColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CardName" msprop:Generator_UserColumnName="CardName" msprop:Generator_ColumnPropNameInRow="CardName" msprop:Generator_ColumnVarNameInTable="columnCardName" msprop:Generator_ColumnPropNameInTable="CardNameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>